﻿{% extends "forum/base.html" %}
{% load customfilters %}

{% block title %}
DjangoPower论坛
{% endblock %}

{% block content %}
{% if validlink %}

<form action="." method="post">

<table class="tablebg" width="100%" cellspacing="1">
    <tr>
        <th colspan="2">重设密码</th>
    </tr>
    <tr>
        <td class="row1" width="38%"><b class="genmed">新密码: </b></td>
        <td class="row2">{{ form.new_password1 }}{% if form.new_password1.errors %}{{ form.new_password1.errors }}{% endif %}</td>
    </tr>
    <tr>
        <td class="row1" width="38%"><b class="genmed">再输一遍: </b></td>
        <td class="row2">{{ form.new_password2 }}{% if form.new_password2.errors %}{{ form.new_password2.errors }}{% endif %}</td>
    </tr>
    
    
    <tr>
	<td class="cat" colspan="2" align="center">
            <input type="submit" name="login" class="btnmain" value="提交新密码" tabindex="5" />
            
	</td>
    </tr>
</table>

</form>
	
{% else %}

<table class="tablebg" width="100%" cellspacing="1">

<tr>
	<th>信息</th>
</tr>
<tr> 
	<td class="row1" align="center"><br /><p class="gen">密码重设失败。<br />密码重设链接失效，可能已经使用过了，请重新发送密码重设请求。<br /></p><br /></td>
</tr>
</table>
	
{% endif %}

<br clear="all" />

</div>


{% endblock %}